//
//  LNMyHeaderView.m
//  LilacNight
//
//  Created by LilacNight on 2018/8/19.
//  Copyright © 2018年 LilacNight. All rights reserved.
//


#import "LNMyHeaderView.h"

@interface LNMyHeaderView ()

@property (weak, nonatomic) IBOutlet UILabel *name_lbl;
@property (weak, nonatomic) IBOutlet UILabel *accountID_lbl;
@property (weak, nonatomic) IBOutlet UIView *lineView;

@end

@implementation LNMyHeaderView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = MX_MAIN_COLOR;

    _lineView.backgroundColor = MX_LINE_COLOR;
    [self initHeaderData];
}

- (void)initHeaderData {
    MXUserMessage *message = [MXUserMessageTool message];
    self.name_lbl.text = message.nickname;
    self.accountID_lbl.text = [NSString stringWithFormat:@"ID:%@",message.id];
   
}

+ (instancetype)initLNMyHeaderView {
    return NSbunleloadNibName(@"LNMyHeaderView");
}

@end
